package router

import (
	"github.com/gin-gonic/gin"
	"modulename/service"
)

func UserRouter(r *gin.Engine) {
	apiRouter := r.Group("/user")
	{
		apiRouter.GET("/getByName", service.GetUserByName)
		apiRouter.POST("/add", service.AddUser)
	}
}
